
package com.abcijkxyz.controller.extrathyme;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import com.abcijkxyz.domain.extrathyme.Team;
import com.abcijkxyz.service.extrathyme.TeamService;

@Controller
public class ExtraThymeController {

	@Autowired
	private TeamService teamService;

	public ExtraThymeController() {
		super();
	}

	@ModelAttribute("teams")
	public List<Team> populateTeams() {
		return this.teamService.findAllTeams();
	}

	@RequestMapping(value = "extrathyme")
	public String show() {
		return "extrathyme";
	}

}
